<template>
  <div>Home
    <button @click="getName()">点击这里</button>
  </div>
</template>

<script>
export default {
    props:[
        "setName",
    ],
    methods:{
        getName(){
            alert(this.setName);
        }
    }

}
</script>

<style>

</style>